<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('员工兼任信息查看')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
    <th:block th:include="include :: select2-css"/>
</head>
<body class="gray-bg">
<div class="ui-layout-center">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="user-form">
                    <div class="select-list">
                        <ul>
                            <li>
                                姓名：<input type="text" name="name"/>
                            </li>
                            <li>
                                工号：<input type="text" name="badge"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">

            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<th:block th:include="include :: ztree-js"/>

<script th:inline="javascript">
    var prefix = ctx + "changeManage/EmpConcurrentlyManage";
    $(function () {
        var panehHidden = false;
        if ($(this).width() < 800) {
            panehHidden = true;
        }
        $('body').layout({initClosed: panehHidden, west__size: 350});
        queryData();
    });

    function queryData() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var badge = {field: 'badge', title: '工号'};
        var name = {field: 'name', title: '姓名'};
        var compName = {field: 'compName', title: '公司名称'};
        var depName = {field: 'depName', title: '部门名称'};
        var jobName = {field: 'jobName', title: '工作岗位'};
        var empStatusName = {field: 'empStatusName', title: '员工状态'};
        var jobStatusName = {field: 'jobStatusName', title: '在岗状态'};
        var joindate = {field: 'joindate', title: '入职日期'};
        var PartCompIDTitle = {field: 'PartCompIDTitle', title: '兼任公司名称'};
        var PartDepIDTitle = {field: 'PartDepIDTitle', title: '兼任部门名称'};
        var PartJobIDTitle = {field: 'PartJobIDTitle', title: '兼任工作岗位名称'};
        var partjobgradeTitle = {field: 'partjobgradeTitle', title: '兼任岗位级别'};
        var BeginDate = {field: 'BeginDate', title: '兼任开始日期'};
        var EndDate = {field: 'EndDate', title: '兼任结束日期'};
        var isOver = {field: 'isOver', title: '兼任结束?'};
        var SeqID = {field: 'SeqID', title: '关联ID'};

        columns.push(id,badge,name,compName,depName,jobName,empStatusName,jobStatusName,joindate,PartCompIDTitle);
        columns.push(PartDepIDTitle,PartJobIDTitle,partjobgradeTitle,BeginDate,EndDate,isOver,SeqID);

        var options = {
            code: "id",
            uniqueId: "id",
            url: prefix + "/EmpConcurrentlyInfoList",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            detailUrl: prefix + "/detail/{id}",
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            sortOrder: "desc",
            modalName: "员工兼任信息查看",
            columns: columns
        };
        $.table.init(options);
    }

</script>
</body>
</html>